package service;

import java.sql.SQLException;
import java.util.List;

import domain.Order;

public interface OrderService {
	public List<Order> findOrder (String id, String name, int page, int limit) throws SQLException;

	public List<Order> findAllOrder (int page, int limit) throws SQLException;
	
	public boolean deleteOrderById (String id) throws SQLException;
	
	public Order findOrderById (String id) throws SQLException;
	
	public List<Order> findOrderByUser (int id, int page, int limit) throws SQLException;
	
	public boolean createOrder (Order order) throws SQLException;
}
